//display1249.h
//#include <reg51.h>


// Init Commands
#define   C_COMMAND_SYSEN   0x01      //SYSTEM ENABLE
#define   C_COMMAND_OPTION_N8   0x20      //N-MOS OUTPUT AND 8 COMMON OPTION

#define   C_COMMAND_LEDON   	0x03      //LED ON
#define   C_COMMAND_LEDOFF   	0x02      //LED OFF
#define   C_COMMAND_BLINKOFF  0x08      //BLINK OFF
#define   C_COMMAND_BLINKON   0x09      //BLINK OFF
#define   C_COMMAND_PWMDUTY   0xaf      //PWM DUTY SET(0xa0~0xaf)

#define  C_COMMAND_RC_MASTER_MODE 0x18
#define  C_COMMAND_SLAVE_MODE 0x10


// Global Functions

sbit DATA_PIN=P2^1;
sbit WR_PIN=P2^2;
void DIS_INIT_1249();
void display_set(unsigned char adrs, unsigned char vdata);
void DIS_DATA_1249(unsigned char vdata);
void DIS_ADDRESS_1249(unsigned char address);
void DIS_COMMAND_1249(unsigned char command);
void DIS_ALLRAM_1249(unsigned char F_RAMSET);
